package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 虚拟机对象 tb_vm
 * 
 * @author ruoyi
 * @date 2023-01-27
 */
public class Vm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** name */
    @Excel(name = "name")
    private String name;

    /** 编号 */
    @Excel(name = "编号")
    private Long envNumber;

    /** 环境 （0dev 1test 2prev 3prod） */
    @Excel(name = "环境 ", readConverterExp = "0=dev,1=test,2=prev,3=prod")
    private String env;

    /** cpu */
    @Excel(name = "cpu")
    private Long cpu;

    /** 内存 */
    @Excel(name = "内存")
    private Long memory;

    /** 硬盘 */
    @Excel(name = "硬盘")
    private Long disk;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** 端口 */
    @Excel(name = "端口")
    private Long loginPort;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 宿主 */
    @Excel(name = "宿主")
    private String master;

    /** 宿主类型 */
    @Excel(name = "宿主类型")
    private String masterType;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEnvNumber(Long envNumber) 
    {
        this.envNumber = envNumber;
    }

    public Long getEnvNumber() 
    {
        return envNumber;
    }
    public void setEnv(String env) 
    {
        this.env = env;
    }

    public String getEnv() 
    {
        return env;
    }
    public void setCpu(Long cpu) 
    {
        this.cpu = cpu;
    }

    public Long getCpu() 
    {
        return cpu;
    }
    public void setMemory(Long memory) 
    {
        this.memory = memory;
    }

    public Long getMemory() 
    {
        return memory;
    }
    public void setDisk(Long disk) 
    {
        this.disk = disk;
    }

    public Long getDisk() 
    {
        return disk;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setLoginPort(Long loginPort) 
    {
        this.loginPort = loginPort;
    }

    public Long getLoginPort() 
    {
        return loginPort;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setMaster(String master) 
    {
        this.master = master;
    }

    public String getMaster() 
    {
        return master;
    }
    public void setMasterType(String masterType) 
    {
        this.masterType = masterType;
    }

    public String getMasterType() 
    {
        return masterType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("envNumber", getEnvNumber())
            .append("env", getEnv())
            .append("cpu", getCpu())
            .append("memory", getMemory())
            .append("disk", getDisk())
            .append("ip", getIp())
            .append("loginPort", getLoginPort())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("master", getMaster())
            .append("masterType", getMasterType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
